package stage1.operation.module2;

import java.math.BigDecimal;

// 通话套餐类
public class CallPackage extends BasicPackage implements CallServiceInterface {
    // 通话时长
    private int callDuration;
    // 短信条数
    private int smsNumber;
    // 每月资费
    private BigDecimal monthlyTariff;

    public int getSmsNumber() {
        return smsNumber;
    }

    public void setSmsNumber(int smsNumber) {
        this.smsNumber = smsNumber;
    }

    public int getCallDuration() {
        return callDuration;
    }

    public void setCallDuration(int callDuration) {
        this.callDuration = callDuration;
    }

    @Override
    public void displayPackage(int callDuration, SimCard simCard) {
        // 打印手机卡信息
        // simCard.displayAccount();
        System.out.println("通话时长" + callDuration + "短信条数" + this.getSmsNumber() + "每月资费" + this.getMonthlyTariff());
    }

    @Override
    public BigDecimal getMonthlyTariff() {
        return monthlyTariff;
    }

    @Override
    public void setMonthlyTariff(BigDecimal monthlyTariff) {
        this.monthlyTariff = monthlyTariff;
    }
}
